home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Night Owl 6
/
Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso
/
031a
/
desutl20.zip
/
EXITW.DOC
< prev
next >
Wrap
Text File
|
1991-11-29
|
7KB
|
225 lines
ExitW Copyright (c) 1990, 1991 Dragon's Eye Software
Last Updated: 11/20/91
Version 2.4
ExitW is a combination of two programs that allow you to exit Windows
quickly and pass data back to DOS so that further processing can be done
after exiting.
Version 2.4 of ExitW has been expanded to allow the user to:
o Display a message before exiting to DOS that has both an Ok and Cancel
button so the user can cancel the exit process.
o Set a specific errorlevel code that should be passed back to DOS.
o Set a specific DOS environment string to a user entered value.
o Restart Windows. This is faster than exiting to DOS and then re-running
Windows!
HOW TO USE EXITW
To use ExitW you should first install the ExitW icon in your Windows shell.
The shell will be either the Program Manager or the program that comes up
first under Windows.
Once you have done this, all you have to do to quickly exit to DOS is double
click on this icon. ExitW will be executed and will tell Windows to shut
down.
USING EXITW PARAMETERS
By using the ExitW command line parameters you can tap the real power of
ExitW.
The command line parameters can be added to the icon by opening the
File|Properties menu while the icon is selected (when using the Program
Manager. If you are using another shell, please consult your documentation
for adding command line parameters to an icon).
COMMAND LINE PARAMETERS FOR EXITW.EXE
The following command line parameters should be used when running ExitW.
Please note that the commands are processed sequentially as they appear on
the command line and that more than one command can appear on the same line.
The command line syntaxt is as follows:
EXITW -[M|E|S|R] <text>
COMMANDS DESCRIPTION
-M <message>
where <message> is a string contained within quotes that you want
displayed to the user before exiting windows.
The Messagebox that will be displayed to the user will have
both Cancel and Ok buttons. If the user presses Cancel, then
ExitW will NOT shut down Windows.
Note that quotes are required for the message text to be displayed
properly if you are using dashes (-) within the display text.
Example: EXITW -M "Now running Autocad - Click on Cancel to abort"
This example will display a message box with an Ok and Cancel button
that displays the text "Now running Autocad - Click on Cancel to
abort". If the user clicks on Ok then Windows will shut down. If
the user clicks on Cancel then ExitW will not shut down Windows!
It is intended that this command be used in conjunction with the
-E command
-E <num>
Where <num> is the errorlevel number that should be returned to DOS.
This number should fall between 1 and 200 (an errorlevel code of
200 is used by the ExitWDOS program to indicate a data file error).
Example: EXITW -E 10
This will cause ExitW to write the value "-E 10" to the data file.
When the data file is processed by ExitWDOS, 10 will be returned as
an ERRORLEVEL code.
-S <string>
where string is an environment variable string that should be added
to or changed within the set of current MS-DOS environment settings.
An example would be: EXITW -S PATH=C:\;C:\DOS
This will cause ExitW to write the value "C:\;C:\DOS" to the data
file. set your path to equal "C:\;C:\DOS" when
When the data file is processed by ExitWDOS, your PATH environment
variable will be changed to "C:\;C:\DOS".
-R
This command will cause Windows to perform a Restart operation.
This is functionally the same as exiting to DOS and then re-running
Windows.
When running large programs in Windows or when running many
different programs, you may notice that your percentage of free
resources steadily decreases. By running ExitW with the -R parameter
you can restart Windows and regain those lost resources.
*** Note: When this command is used -R should normally be the only
parameter on the command line. When ExitW encounters the -R
parameter, it will immediately restart Windows. Because of this,
processing that would normally be done in DOS, based on the other
command line parameters, will not occur becuase Windows does not
shut down when this command is used.
*** If no parameters are given on the ExitW command line then ExitW ***
*** will not create a data file. It will merely cause an exit to DOS. ***
WIN.INI ENTRY FOR EXITW.EXE
The following two lines should be present in the WIN.INI file for ExitW
to operate properly:
[ExitW]
Filename=<path>
where <path> is a full pathname a file where ExitW will store the commmand
line parameters. (EG. Filename=C:\WINDOWS\EXITW.DAT).
If this entry is not found, then ExitW will save the parameters to a file
called EXITW.DAT in the root directory of the current drive.
EXAMPLE
Calling ExitW with the following command line:
EXITW -M "Exiting Windows" -S PATH=C:\ -E 1
Would cause ExitW to write to disk the options:
-S PATH=C:\
-E 1
When ExitWDOS is executed, it will parse the data file created by
ExitW and change the path to equal "C:\" and will return and errorlevel
code of 10.
** ExitW is currently in active use on several hundred computers around
the country. For a batch file example of one way to use ExitW please
refer to the WIN.BAT file.
***** IMPORTANT *****
When executing ExitWDOS, you MUST specify the location and name of the file
created by ExitW. Without this specification, ExitWDOS will not know where
to find the file.
For example:
EXITWDOS C:\WINDOWS\EXITW.DAT
will cause ExitWDOS to look in the directory \WINDOWS on drive C: for the file
EXITW.DAT. If this file exists, ExitWDOS will parse the file and return the
information contained within it.
Revision History
----------------
Version 2.4 - 11/20/91
Added a restart capability. If -R is on the command line then
ExitW will restart Windows.
Version 2.3 - 03/02/91
Got rid of spurious messages when setting an exit message or
an errorlevel code.
Version 2.1 - 01/27/91
Added a cancel button to the MessageBox and fixed the bug where
ExitWDOS was adding a space to the end of the environment variables.
Also changed the code so that dashes "-" may be used within messagebox
strings.
Version 2.0 - 01/13/91
ExitW has been expanded to allow the user to: display a message before
exiting to DOS, to set the specific errorlevel code that should be
passed back and to set a specific environment string.
Version 1.0 - 06/20/90
Released